package edu.sctu.practice.class02.Wangpeng.Dtest4;

import java.awt.*;

/**
 * Created by wp on 2015/12/10.
 */
public class WordThread extends Thread {
    char word;
    int k=19968;
    Label com;
    WordThread(Label com){
        this.com=com;
    }

    public void run(){
        k=19968;
        while(true){
            word=(char)k;
            com.setText(""+word);
            try{
                Thread.sleep(6000);
            } catch (InterruptedException e) {}
            k++;
            if(k>=29968) k=19968;
        }
    }
}
